//
//  NSArray+NSLog.m
//  0827-MF科技头条
//
//  Created by brice Mac on 16/8/28.
//  Copyright © 2016年 brice Mac. All rights reserved.
//

#import "NSArray+NSLog.h"

@implementation NSArray (NSLog)

- (NSString *)descriptionWithLocale:(id)locale{
    NSMutableString *stringM = [NSMutableString stringWithString:@"(\n"];
    [self enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
        [stringM appendFormat:@"\t%@,\n",obj];
    }];
    [stringM appendString:@")"];
    return stringM;
}

@end


@implementation NSDictionary (NSLog)

- (NSString *)descriptionWithLocale:(id)locale{
    NSMutableString *strM = [NSMutableString stringWithString:@"{\n"];
    
    [self enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
        [strM appendFormat:@"\t%@ = %@;\n", key, obj];
    }];
    
    [strM appendString:@"}\n"];
    
    return strM;
}

@end